const express = require('express');
const compression = require('compression');
//创建WEB服务器
const app = express();

//启动中间件
app.use(compression())
    //托管静态资源
app.use(express.static('./dist'));

//启动web服务器
app.listen(80, () => {
    console.log('web server running at http://127.0.0.1');
})